const mongoose = require('mongoose')
const userLoginSchema = mongoose.Schema({
    "userId": Number,           //用户ID
    "userName": String,         //用户名称
    "lastLoginTime" : {
        type: Date,
        default: Date.now()
    },//更新时间
})

module.exports = mongoose.model("userLogins", userLoginSchema, "userLogins")//第三个参数是集合名称